import React from 'react'
import ReactDOM from 'react-dom/client'
import { Provider } from 'react-redux'
import store from './store'
import App from './App'

ReactDOM.createRoot(document.getElementById('root')).render(
  // 写store属性,是为了将我们写的store对象传递给useSelector这个hook
  // Provider组件内部使用的是context技术传递的
  <Provider store={store}>
    <App></App>
  </Provider>
)
